import time
from selenium import webdriver
from selenium.webdriver.common.by import By
driver=webdriver.Chrome()
# driver=webdriver.Firefox()
driver.get('http://101.133.169.100/yuns/index.php')
time.sleep(3)
driver.maximize_window()#设置窗体最大化
driver.quit()
driver.set_window_size(1200,800)#给浏览器的宽和高赋值
driver.find_element(By.XPATH,"//input[@class='but1' and @name='key']").send_keys('手机')
time.sleep(1)
driver.find_element(By.XPATH,"//div[@class='schbox']/form/input[1]").clear()
time.sleep(2)
driver.find_element(By.PARTIAL_LINK_TEXT,'家装节').click()
time.sleep(2)
driver.quit()